$(function () {
     $('#deleteActive').click(function () {
         var id=$('#deleteId').val();
         $.ajax({
             url:ctx+"home/deleteReviewById?id="+id,
             type:"post",
             dataType:"json",
             success : function (data) {
                 if (data.msg == '删除成功'){
                     $('#deleteModal').modal('hide');
                     toastr.success("删除成功");
                     setTimeout(function () {
                         window.location.reload();
                     },500)
                 }
                 else {
                     toastr.error("操作失败")
                 }
             }
         })
     })
    
})

function deleteReview(reviewId) {
    $('#deleteId').val(reviewId);
}

function removeClassType($this) {
    $($this).attr("title",$this.innerText);
}